package com.spikegpsongoogleappengine;

public class CompanyInfo {

	private Long id;
	private String url;
	private String fnOrgUrl;
	private String streetAddress;
	private String locality;
	private double latitude;
	private double longitude;
	private String tel;
	private String classification;
	private String orderRightCorner;
	private String serviceLinks;
	
	public CompanyInfo() {
		super();
	}
	
	public CompanyInfo(Long id, String url, String fnOrgUrl,
			String streetAddress, String locality, double latitude,
			double longitude, String tel, String classification,
			String orderRightCorner, String serviceLinks) {
		super();
		this.id = id;
		this.url = url;
		this.fnOrgUrl = fnOrgUrl;
		this.streetAddress = streetAddress;
		this.locality = locality;
		this.latitude = latitude;
		this.longitude = longitude;
		this.tel = tel;
		this.classification = classification;
		this.orderRightCorner = orderRightCorner;
		this.serviceLinks = serviceLinks;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFnOrgUrl() {
		return fnOrgUrl;
	}

	public void setFnOrgUrl(String fnOrgUrl) {
		this.fnOrgUrl = fnOrgUrl;
	}

	public String getStreetAddress() {
		return streetAddress;
	}

	public void setStreetAddress(String streetAddress) {
		this.streetAddress = streetAddress;
	}

	public String getLocality() {
		return locality;
	}

	public void setLocality(String locality) {
		this.locality = locality;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getClassification() {
		return classification;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public String getOrderRightCorner() {
		return orderRightCorner;
	}

	public void setOrderRightCorner(String orderRightCorner) {
		this.orderRightCorner = orderRightCorner;
	}

	public String getServiceLinks() {
		return serviceLinks;
	}

	public void setServiceLinks(String serviceLinks) {
		this.serviceLinks = serviceLinks;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((classification == null) ? 0 : classification.hashCode());
		result = prime * result
				+ ((fnOrgUrl == null) ? 0 : fnOrgUrl.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		long temp;
		temp = Double.doubleToLongBits(latitude);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result
				+ ((locality == null) ? 0 : locality.hashCode());
		temp = Double.doubleToLongBits(longitude);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime
				* result
				+ ((orderRightCorner == null) ? 0 : orderRightCorner.hashCode());
		result = prime * result
				+ ((serviceLinks == null) ? 0 : serviceLinks.hashCode());
		result = prime * result
				+ ((streetAddress == null) ? 0 : streetAddress.hashCode());
		result = prime * result + ((tel == null) ? 0 : tel.hashCode());
		result = prime * result + ((url == null) ? 0 : url.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompanyInfo other = (CompanyInfo) obj;
		if (classification == null) {
			if (other.classification != null)
				return false;
		} else if (!classification.equals(other.classification))
			return false;
		if (fnOrgUrl == null) {
			if (other.fnOrgUrl != null)
				return false;
		} else if (!fnOrgUrl.equals(other.fnOrgUrl))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (Double.doubleToLongBits(latitude) != Double
				.doubleToLongBits(other.latitude))
			return false;
		if (locality == null) {
			if (other.locality != null)
				return false;
		} else if (!locality.equals(other.locality))
			return false;
		if (Double.doubleToLongBits(longitude) != Double
				.doubleToLongBits(other.longitude))
			return false;
		if (orderRightCorner == null) {
			if (other.orderRightCorner != null)
				return false;
		} else if (!orderRightCorner.equals(other.orderRightCorner))
			return false;
		if (serviceLinks == null) {
			if (other.serviceLinks != null)
				return false;
		} else if (!serviceLinks.equals(other.serviceLinks))
			return false;
		if (streetAddress == null) {
			if (other.streetAddress != null)
				return false;
		} else if (!streetAddress.equals(other.streetAddress))
			return false;
		if (tel == null) {
			if (other.tel != null)
				return false;
		} else if (!tel.equals(other.tel))
			return false;
		if (url == null) {
			if (other.url != null)
				return false;
		} else if (!url.equals(other.url))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CompanyInfoProxyImpl [id=" + id + ", url=" + url
				+ ", fnOrgUrl=" + fnOrgUrl + ", streetAddress=" + streetAddress
				+ ", locality=" + locality + ", latitude=" + latitude
				+ ", longitude=" + longitude + ", tel=" + tel
				+ ", classification=" + classification + ", orderRightCorner="
				+ orderRightCorner + ", serviceLinks=" + serviceLinks + "]";
	}

}
